import { CreateAudio } from "./utils/createAudio.js";

let res = document.querySelector("#play");
res.onclick = () => {
  let audioCtx = new CreateAudio();
  // audioCtx.setAudio(0);
  var num = 0;
  var frequencyLen = 2;
  setInterval(() => {
    if (num >= frequencyLen) num = 0;
    audioCtx.setAudio(num);
    num++;
  }, 500);
};
